package com.courseselector.entity.selection;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 选课实体类
 */
@Data
@TableName("course_selection")
public class CourseSelection implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 选课ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    /**
     * 学生ID
     */
    private Integer studentId;
    
    /**
     * 课程ID
     */
    private Integer courseId;
    
    /**
     * 选课时间
     */
    private LocalDateTime selectionTime;
    
    /**
     * 状态：0-退选，1-已选
     */
    private Integer status;
    
    /**
     * 成绩
     */
    private BigDecimal grade;
    
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
} 